package com.woniu.userservice.service;

import com.woniu.userservice.entity.Collections;

import java.util.Date;
import java.util.List;

public interface CollectionsService {

    Collections queryById(Integer id);

    List<Collections> queryAllByLimit(int offset, int limit);
    
    List<Collections> findAll();
    Collections insert(Collections collections);

    Collections update(Collections collections);

    boolean deleteById(Integer id);

    boolean deleteByShopId(Integer id, Integer userid);

    List<Collections> findByShop(Integer userId, String goodsName, Date collectionTime, Double price);
}